/**
 * @description product model
 * @author 李哲
 */
const mongoose = require('../db/db');

const schema = mongoose.Schema({
    shopId: {
        type: String,
        require: true
    },
    name: String,
    imgUrl: String,
    sales: Number,
    price: Number,
    oldPrice: Number,
    tabs: [String]
}, {
    timestamps: true
})

const product = mongoose.model('product', schema);

module.exports = product;